package cn.itlaobing.springmvc.test;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 优惠卷核销日志
 * @author mifei
 * @create 2018年04月09日
 **/
@Document(collection = "crm7.coupon.notify")
public class CouponNotify {

    public static int STATUS_SUCCESS = 0 ;
    public static int STATUS_FAIL = 1 ;

    @Id
    private String id;
    @Field("company_id")
    private Long companyId;
    @Field("coupon_code")
    private String couponCode;
    @Field("mp_id")
    private String mpId;
    @Field("error_times")
    private int errorTimes;
    @Field("current_status")
    private int currentStatus;
    @Field("money")
    private long money;
    @Field("money1")
    private Integer money1;

    private Object[] results;

    public Integer getMoney1() {
        return money1;
    }

    public void setMoney1(Integer money1) {
        this.money1 = money1;
    }

    public Object[] getResults() {
        return results;
    }

    public void setResults(Object[] results) {
        this.results = results;
    }

    public long getMoney() {
        return money;
    }

    public void setMoney(long money) {
        this.money = money;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public String getMpId() {
        return mpId;
    }

    public void setMpId(String mpId) {
        this.mpId = mpId;
    }

    public int getErrorTimes() {
        return errorTimes;
    }

    public void setErrorTimes(int errorTimes) {
        this.errorTimes = errorTimes;
    }

    public int getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(int currentStatus) {
        this.currentStatus = currentStatus;
    }
}
